package com.chenyaowei.happyhub.pojo.wechatuser;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order {
    @ExcelProperty("订单编号")
    private int id;
    @ExcelProperty("用户id")
    private int userId;
    @ExcelProperty("商品id")
    private int goodId;
    @ExcelProperty("商品名称")
    private String goodHeader;
    @ExcelProperty("商品版本")
    private String goodVersion;
    @ExcelProperty("商品价格")
    private float meta;
    @ExcelProperty("购买数量")
    private int goodNum;
    @ExcelProperty("总价")
    private float totalPrice;
    @ExcelProperty("收货人姓名")
    private String receiverName;
    @ExcelProperty("收货人手机")
    private String mobile;
    @ExcelProperty("城市")
    private String city;
    @ExcelProperty("名省份")
    private String province;
    @ExcelProperty("详细地址")
    private String detail;
    @ExcelProperty("日期")
    private String date;

    public Order(int userId,int goodId, String goodHeader, String goodVersion, float meta, int goodNum, float totalPrice, String receiverName, String mobile, String city, String province, String detail,String date) {
        this.userId=userId;
        this.goodId = goodId;
        this.goodHeader = goodHeader;
        this.goodVersion = goodVersion;
        this.meta = meta;
        this.goodNum = goodNum;
        this.totalPrice = totalPrice;
        this.receiverName = receiverName;
        this.mobile = mobile;
        this.city = city;
        this.province = province;
        this.detail = detail;
        this.date=date;
    }
}
